﻿using System;
using System.Collections.Generic;
using Zeus.Thunder.Core;

namespace SharpTrainer.Collections
{
  class GenericDict : ITestCase
  {
    public void Run()
    {
        Dictionary<string, MyEmployee> dict = new Dictionary<string, MyEmployee>();
        dict.Add("A001", new MyEmployee("Jeff", 18000));
        dict.Add("B001", new MyEmployee("Neil", 15000));
        dict.Add("B002", new MyEmployee("David", 15000));

        Dictionary<string, MyEmployee>.ValueCollection valueColl =
        dict.Values;

      Console.WriteLine("List All Employees: ");
      foreach (MyEmployee item in valueColl)
        Console.WriteLine(item);

      Console.ReadLine();
    }
  }
}
